Thermodynamics of copper and zinc distribution in the cyanobacterium Synechocystis PCC 6803