Liquid Sloshing Dynamics: Theory and Applications