Real and reactive power control using a VSS controlled inverter in photovoltaic applications