what are the geological processes that lead to earthquakes