Measurement of the cross section of the reaction pn → ppπ− in the energy region of dibaryon resonances (500–1000 MeV)