Mass spectra from the diffractive reactions pp→ppπ0 and pp→pnπ+ at 28.5 GeV/c