Role of surface heterogeneity in the chemical bond of MgO: ionic character of regular and defect surface sites