A thermographic method for the evaluation of the iron losses distribution in electromagnetic devices