an instrument used to measure magnitude