Nonlinear flexural-flexural-torsional dynamics of metallic and composite beams