Lattice location and optical activation of rare earth implanted GaN