Changed java tests detection procedure

New behavior:
* java tests will be active only if java module is built and all tested modules (provided in list, except *ml*) are built
* java tests state can be probed by checking `opencv_test_java_BINARY_DIR` existence

Old behavior:
* java tests where turned off in case when optional java dependencies where missing
* cmake showed `JAVA TESTS: YES` even if tests are disabled