Self-similar focusing with generalized devil's lenses.