Nonlinear free vibrations of composite structures via the X-Ritz method