Adaptive responses of the embryos of birds and reptiles to spatial and temporal variations in nest temperatures