characteristics of pn junction