Critical parameters of alternators for grid code compliant generators