An accurate measurement procedure of power losses variations in electrical drives