Vibrational dephasing in liquids: analogy with molecular electronic lineshapes