Correlation between electric-field-induced phase transition and piezoelectricity in lead zirconate titanate films