Atomically thin p-n junctions based on two-dimensional materials.