Accurate Measurement of Energy Dissipated in Braking Rheostats in DC Railway Systems