From an atomistic study of olivine under pressure to the understanding of the macroscopic energy release in earthquakes