Plasticity and genetic adaptation mediate amphibian and reptile responses to climate change