Thermodynamics of Charge Regulation during Ion Transport through Silica Nanochannels.