Magnetic-Field-Induced Magnetic Phase Transitions Associated with Ferroelectricity in Multiferroic ErMn2O5