A first-principles comparative study of lithium, sodium, potassium and calcium storage in two-dimensional Mg2C