Self-driven photodetector and ambipolar transistor in atomically thin GaTe-MoS2 p–n vdW heterostructure