Improving the fault tolerance of grid-connected synchronous generators through electromagnetic design