this calculates the aberrations in a gradient index lens in matlab