how sleep affects weight loss