Egypt court stops virginity tests in military prisons