A first principle calculation of the total binding energy and c/a ratio of magnesium☆