A polycrystalline diamond thin-film-based hydrogen sensor