Theory of volume transition in polyelectrolyte gels with charge regularization.