Supreme Court of Pakistan questions legality of military trials