Self-consistent theory of a charged multimembrane system