Three-dimensional point spread function and generalized amplitude transfer function of near-field flat lenses.