New study links weight loss, sleep