On the growth of Sobolev norms for NLS on 2- and 3-dimensional manifolds