On the growth of high Sobolev norms for certain one-dimensional Hamiltonian PDEs