The Measurement of Actual Apparent Power and Actual Reactive Power from the Instantaneous Power Signals in Single-Phase and Three-Phase Systems