Physical or chemical etching of the layers