Text this: Rare earth doped III-nitrides for optoelectronic and spintronic applications