What factors contribute to the intensity of an earthquake, and how do they affect the overall magnitude?