Mid-infrared whispering gallery mode ring lasers and LEDs