Simulation of flicker mitigation with the Smarttrafo