Shams-uddin Muhammad was the second malik of the Kurt dynasty, he ruled from 1245 until his death in which year?