Dynamic brake for induction motors