The effect of sloshing on the sway motions of 2D rectangular cylinders in regular waves