Switching signal estimator design for a class of elementary systems