Evaluation of gradient-index rod lenses by imaging.