Analytical description of lobster eye and similar multi-foil optics