EMTP-RV simulation of a chain link STATCOM