Three-dimensional free-surface flow over arbitrary bottom topography