Phenomenology of earthquakes