Sol-gel derived PZT thin films for switching applications