Dynamic recrystallization. A comparison between magnesium and quartz