Comparison of the mechanisms of enhanced ionization of H2 and H3+ in intense laser fields