How Earthquake Magnitude Affects Communities