Deciding Hadamard equivalence of Hadamard matrices