A boundary integral equations method for computing inertial and damping characteristics of arbitrary contours in deep fluid