Ab initio calculations of MgF2 (0 0 1) and (0 1 1) surface structure