Compensation of dc-link voltage oscillations in grid connected pv systems