Magnetically tunable far infrared emitters and detectors