it is an instrument used to measure the amount of energy released by an earthquake​