Phase transitions in textured SrTiO3 thin films on epitaxial Pt electrodes