Numerical simulation of sloshing waves in a 3-d tank based on a finite element method