Sloshing waves and resonance modes of fluid in a 3D tank by a time-independent finite difference method