Parallel simulation of multiphase flows using octree adaptivity and the volume-of-fluid method