Nonequilibrium Thermodynamics of the Sedimentation Potential and Electrophoresis