Propagation of Modulated Optical Fields Through Saturable-Absorbing Media: a General Theory of Modulation Spectroscopy