Dynamics of degenerate and nondegenerate solitons in the two-component nonlinear Schrödinger equations coupled to Boussinesq equation