Control of power converter for grid integration of renewable energy conversion and STATCOM systems