Models of piezoelectric materials for transduction and energy harvesting