Search for dark matter produced in association with a single top quark or a top quark pair in proton-proton collisions at √s=13 TeV