Hydrogen sensor that could pave the way for safer, cleaner energy