Mechanical failure dependence on the electrical history of lead zirconate titanate thin films