Stress-induced lateral confinement of light in epitaxial BaTiO3 films grown by radio-frequency magnetron sputtering