Differential cross sections for the reactions p + p → D + π+ and p + p → D + ϱ+ at 21 GeV/c