Charge Sampling Photodetector Based on van der Waals Heterostructures