New Warping Function for Thin-Walled Beams. I: Theory