Two-dimensional magnetic modeling of ferromagnetic materials by using a neural networks based hybrid approach