Mid-Infrared Semiconductor Devices With Vertical Cavities