Intelligent three-phase capacitor