Design and Implementation of a Close-Loop Hall Effect Sensor for the Measurement of Instantaneous Current and Voltage