P n junction structure