Dephasing and Decoherence in Vibrational and Electronic Line Shapes.