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) are built
* java tests state can be probed by checking `opencv_test_java_BINARY_DIR` existence

Old behavior was:
* java tests where turned off in case when optional java dependencies where missing
* cmake showed `JAVA TESTS: ON` even if tests are disabled