Tuning electrical and photoelectrical properties of CdSe nanowires via indium doping.