Generalized invariant models for the analysis of soft-switching cells