Generalized Fourier Series Solution of Torsion of an Elliptic Beam with Microstructure