Theoretical Analysis of Electrical Properties of GaAs Substrate-Nanowire P-N Junction