Visualization and simulation of bubble growth in pore networks