Process of forming p-n layer