Input-Output Equivalence of Unitary and Contractive RNNs