Structural and optical properties of metal ion implanted GaN