what instrument is used to measure magnitude of an earthquake​