Thermochemical hydrogen sensor based on chalcogenide nanowire arrays