Genetic differentiation and estimation of gene flow from F-statistics under isolation by distance