Thin film and nanostructured Pd-based materials for optical H2 sensors