A Unified Approach to Controlled Switching of Power Equipment