Which Muslim ruler ordered the construction of a magnificent mosque in Istanbul and decreed a vast new set of laws for his empire?