Simulations of migration, fragmentation and coalescence of non-wetting fluids in porous media