Measurement of prompt charm meson production cross sections in p p̄ collisions at √s = 1.96 TeV