A beam formulation with 3D capabilities for the free vibration analysis of thin-walled metallic and composite structures