Hysteresis-controlled Van der Waals tunneling infrared detector enabled by selective layer heating