CuInSe2 homojunction diode fabricated by phosphorus doping