Text this: The mechanics of piezoelectric structures