Quantum dynamics of vibrational relaxation in condensed media