Neoclassical poloidal and toroidal rotation in tokamaks