Effect of turbulence and noise on ultraviolet and mid-infrared spectrum in optical wireless communications