Electrostatic synchronous generator model of an Inverter-Based Distributed Generators