Entanglement entropy in extended quantum systems