An Analytical Inverse Approach to Design GRIN Lenses