Optical and electrical doping of silicon with holmium