Three-dimensional formulation of a strain-based geometrically nonlinear piezoelectric beam for energy harvesting