Design and fabrication of a measurement system for braking rheostat losses