Developments in modelling of gas injection and slag foaming