How to measure earthquake intensity