How temperature extremes affect health