Lateral P-N Junctions Based On 2-D Materials