Saturation spectroscopy in optically thick three-level gas media