Modeling and analysis for the optimal operation of induction generators used in renewable energy sources