Theory of vibrational linewidths