Polar and non-polar domain borders in MgO ultrathin films on Ag(001)