Waveguide-integrated mid-IR photodetector and all-optical modulator based on interlayer excitons absorption in a WS2/HfS2 heterostructure