Identification of Material Properties and Optimal Design of Magnetically Shielded Rooms