Unusual properties of two-dimensional insulators: transition metals on NaCl and MgO ultrathin films