The importance of ion fluxes for cancer proliferation and metastasis: A thermodynamic analysis