Theory of dark resonances for alkali-metal vapors in a buffer-gas cell