Comparative study of crystallization process in metallic melts using ab initio molecular dynamics simulations