Charge control: modeling, analysis and design