Sultan Hassan Mosque, Nilometer e Mohamed Ali Palace