Two-layer resist system for hydrofluoric acid etching