Compensation of magnetic core saturation for grid connected single-phase power converters