Engine-driven synchronous generators: design considerations for grid code compliance