Revealing the links between climate and demography for reptiles with environmental sex determination