Development of df/dt function in inverters for synthetic inertia