Electronic structure and optical properties of the lanthanide activated RE3(Al1−xGax)5O12 (RE=Gd, Y, Lu) garnet compounds