Measurement of the e+e− → π+π− cross section with the CMD-2 detector in the 370–520-MeV energy range