Locally varying refractive index, gradient index lenses