Unipolar barrier photodetectors based on van der Waals heterostructures