2D and 3D SPH simulations of sloshing in a tank