Rare-earth defects in GaN: A systematic investigation of the lanthanide series