Role of nanosize icosahedral quasicrystal of Mg-Al and Mg-Ca alloys in avoiding crystallization of liquid Mg: Ab initio molecular dynamics study