Quantification of the effect of geographic versus environmental isolation on genetic differentiation