Virtual-impedance control & compensation for grid-connected inverter systems