Application of piezoelectric device for actuation and sensing. The purpose involves both energy harvesting and biomimetic propulsion