Effect of Intrinsic Defects on Electronic and Magnetic Properties in Tm-Doped GaN: First-Principles Calculations