Cancer metabolism and the dynamics of metastasis