Optical study of the Y3Ga5O12-Pr3Ga5O12 system