Shafts of Varying Cross Sections in Torsion