How to model a complex Fresnel lens