Measurement of prompt open-charm production cross sections in proton-proton collisions at √s = 13 TeV