Habitat heterogeneity affects the thermal ecology of an endangered lizard