A flexibly switchable TaIrTe4–WSe2 van der Waals heterojunction photodetector with linear-polarization-dependent photosensitivity