Piezoelectric thin films: an integrated review of transducers and energy harvesting