how do the nervous and endocrine system respond to an increase in environmental temperature to achieve homeostasis?