Phase-field modeling of multiphase flows using the lattice Boltzmann method with adaptive mesh refinement