Quantum entanglement driven by electron-vibrational mode coupling