Design of optical systems with toroidal curved detectors.