(b) Courts-martial and courts of inquiry may be convened and held in units of the organized militia while serving without the state with the same jurisdiction and powers as if held within the state and offenses committed without the state may be tried and punished either without the state or within the state.