Grid impedance detection via excitation of LCL-filter resonance