Torsion of thin-walled composite beams with midplane symmetry