Text this: Optimizing grid-dependent and islanded network operations through synergic active-reactive power integration