Effects of bubble coalescence, permeability, and degassing process on the transition from explosive to effusive eruption of rhyolitic magma