Cooperative simulation of lithography and topography for three-dimensional high-aspect-ratio etching