added boundary conditions to pn equation derivation