Stability analysis of grid inverter LCL-filter resonance in wind or photovoltaic parks