¿Cómo calcular la magnitud de un terremoto con logaritmos?