Surface effects in simulations of scanning electron microscopy images