The Maqāmāt as Prosimetrum: A Comparative Investigation of its Origin, Form and Function