Simulation and automated characterisation of optimal load for flexible composite generators based on piezoelectric ZnO nanowires