Gate-tunable broad-spectrum avalanche photodetector based on WSe2/MoTe2 type-I heterojunction