The nonlinear wave loading and dynamic response of a freely-floating two-dimensional box