Study of the charged three-pion system in the mass region of 1400–1900 MeV and the quantum numbers of the A3(1640)