A novel approach for the control of drug release rate through hydrogel membrane II. Thermodynamic modeling of the partition control scheme