When was nitrous invented?

when was automotive use nitrous oxide invented