How exercise affects metabolism and weight loss