A frame-independent solution to Saint-Venant's flexure problem