Correlates of population genetic differentiation in marine and terrestrial environments