Space charge effects and carrier capture transient behaviour in semi-insulating GaAs and GaN