Non-linear and hysteretical finite element formulation applied to magnetostrictive materials