Effective Hamiltonian for conjugated polyenes based on the ground state single-electron density matrix