Text this: Sloshing in rectangular tanks and interaction with ship motions