Investigation of diffraction dissociation in single-pion production reactions in nucleon-nucleon collisions at 12 GeV/c