A dynamic homogenization approach for modelling hybrid piezoelectric nanogenerators