On the relative ease of speciation with periodic gene flow