Nonlinear free dynamics of a two-layer composite beam with different boundary conditions