Automated B-H curve identification algorithm combining field simulation with optimisation methods and exploiting parallel computation