A fast reciprocal space method for image simulation.