a method for protecting a material of a microstructure comprising the material and a noble metal layer against undesired galvanic etching during manufacture , the method comprises forming on the structure a sacrificial metal layer having a lower redox potential than the material , the sacrificial metal layer being electrically connected to the noble metal layer .