Quantum quenches in extended systems