Testing the heat-invariant and cold-variability tolerance hypotheses across geographic gradients