On Menelaus' Spherics III.5 in Arabic mathematics, I: Ibn Iraq