Adaptive separation in ternary switching circuits