Entanglement in Extended Hubbard models and Quantum Phase Transitions