Effect of surface interactions on spin contamination errors of homogeneous spin dimers, chains, and films: model calculations of Au/MgO and Au/BaO systems