Construction of soliton solutions and periodic solutions of the Boussinesq equation by the modified decomposition method