Active power decoupling and controlling for single-phase FACTS device