Training-free Neural Architecture Search for RNNs and Transformers