Discrete frequency control for applications in induction motors