p-n Junction in solar cell