Adiabatic shaping of diffuse light with a tapered gradient-index element