Small-scale piezoelectric devices: Pyroelectric contributions to the piezoelectric response