Thin-film hydrogen sensor