An adaptive scheme using hierarchical grids for lattice Boltzmann multi-phase flow simulations