Bilayer structures based on metal phthalocyanine and palladium layers for selective hydrogen detection