Topological equivalence between two classes of three-dimensional steady cavity flows