Optimization of capacity factors based on rated wind speeds of wind turbines