Advanced virtual synchronous generator implementation on a modular multilevel converter