Silicon doping by erbium to create light-emitting structures