Residual stress analysis in ferroelectric Pb(Zr0.52Ti0.48)O3 thin films fabricated by a sol-gel process