richter scale how does it work