Double charge exchange and one-pion production in collisions at 1.7 GeV/c