Cascaded diffraction in optical systems. Part I: simulation model.