Magnetoresistance and atomic structure of ultrathin films of La_0.73Ca_0.27 MnO_3 and SrTiO_3