From effusive to explosive eruptions: the example of Vesuvius in 1822