A 2D finite element procedure for magnetic analysis involving non-linear and hysteretic materials