Inverse doping problems for a P-N junction