Replicating the surface structure of a sacrificial layer