Polarization direction and stability in ferroelectric lead titanate thin films