A Fast-Acting DC-Link Voltage Controller for ThreePhase DSTATCOM to Compensate AC and DC Loads