Integrated optic sensor for the detection of H2 concentrations