Diffraction dissociation of K− → K3π and p → N3π in the reactions K−p → NK3π at 10 and 16 GeV/c