After a Japanese medical school stopped rigging exam scores, women outperformed men