Measurement of power loss during electric vehicle charging and discharging | Synapse