An accurate frequency-domain model of water interaction with cylinders of arbitrary shape during earthquakes