Temperature-controlled spin filter and spin valve based on Fe-doped monolayer MoS2.