How Dams Cause Earthquakes