Earthquakes, Religion, and Transition to Self-Government in Italian Cities