On the sloshing of liquids in parallelepiped-shaped containers