[java] Auto EP and compile model support (#25131)
### Description
Java API for compile model and EP discovery APIs. Roughly equivalent to
the C# version in #24604.
cc: @skottmckay.
I haven't quite got the CMake configured so the Java tests for the ep
registration only run when the ONNX Runtime shared provider support is
built, but everything else works. I expect that to be a quick fix, but
I'm not sure in what conditions it should be built and how we should
handle it so I don't know where/when to plumb it through.
### Motivation and Context
API parity for Java.