Predictive electromechanical model for energy scavengers using patterned piezoelectric layers