An experimental method to model electrical machines magnetic cores from the effective dynamic hysteresis loop: an application to switched reluctance motors