The effect of flow on swimming bacteria controls the initial colonization of curved surfaces