Hagia Sophia in the Long Nineteenth Century