Modeling the Effects of Chromatic Aberrations in Optical Systems