Ion implantation doping of Si for optoelectronic applications