High-performance position-sensitive detector based on the lateral photoelectrical effect of two-dimensional materials