Metabolic adaptations and compartmentalization in physiology and cancer