Physical or chemical etching of the layers, e.g. to produce a patterned layer from a pre-deposited extensive layer {using masks}