Application of the theory of differential equations with discontinuous right-hand sides to non-linear problems in automatic control