Simulation of epitaxial growth over patterned substrates