Optimal shape design of an iron-cored electromagnet: a further benchmark problem in magnetostatics