measures the amount of energy released by the earthquake