Scientists find way to help cancer patients with terminal weight loss