instrument that records vibrations in the ground and determines the location and strength of an earthquake