Study on the geometric structure and stability of AlnMgn (n = 2–12) clusters using density functional theory