Optical and structural properties of rare earth doped GaN quantum dots