Investigation of the role of 3d transition metal atoms (M=Ti–Ni) in a Y3Al5O12 matrix by first principles electronic structure calculations