Effects of interfacial oxygen-deficient layer on resistance switching in Cr-doped SrTiO3 thin films