Magnus III of Mecklenburg-Schwerin married the daughter of this monarch who reigned over which two countries?