Text this: Control Algorithm for an Inverter-Based Virtual Synchronous Generator with Adjustable Inertia