Identification of the B-H curve from external measurements using complementary formulations