Method and system for regulating an electrical converter for autonomous frequency stabilization, with load transients in a micro-network comprising a diesel generating set