Generalized kinetic theory of ensembles with variable charges