Investigation of the dynamics of a multibody wave energy converter excited by regular and irregular waves