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