Effects of Polarization on Ferroelectric P-N Junction