Prepare deprecated ONNX exporter for torch v1.11
# What does this PR do?

This PR extends #15270 to ensure the deprecated `transformers.convert_graph_to_onnx` package can also run on `torch` v1.11.

I also took the liberty of adding a deprecation warning to this package.

_The documentation is not available anymore as the PR was closed or merged._