A Safavid bureaucrat in the Ottoman world: Mirza Makhdum Sharifi Shirazi and the quest for upward mobility in the İlmiye hierarchy