Islam, Causality, and Freedom: From the Medieval to the Modern Era