Hydrogen has long been sold as a clean fuel, yet most of it is still produced from fossil gas with a heavy carbon footprint.