How many years did Ali Qushji spend in Istanbul