Piezoelectric actuation and sensing mechanisms––closed form solutions