Ray-based methods for simulating aberrations and cascaded diffraction in imaging systems