State dependent pyroelectric and thermal expansion coefficients in a PZT wafer