Entanglement and quantum phase transition in the asymmetric Hubbard chain: density-matrix renormalization group calculations