The effects of outgassing on the transition between effusive and explosive silicic eruptions