Mid-IR Lasers and LEDs Using Type I and II Materials