Modeling and numerical simulation of soft ferromagnetic materials used in electrical machinery