Second-order solution of Saint-Venant's problem for an elastic bar predeformed in flexure