End-to-end complex lens design with differentiate ray tracing