The mosque as instrument: new approaches in the history of Islamicate astronomy