richter scale logarithmic formula example