Linear elasticity and piezoelectricity in pyroelectrics