On the evolution of structure and composition in sol-gel-derived lead zirconate titanate thin layers