Use of Kolmogorov-Johnson-Mehl-Avrami kinetics in recrystallization of metals and crystallization of metallic glasses