Approximate Solution to the Problem of the Invariance of a Control System