On quasi-periodic solutions for a generalized Boussinesq equation