Numerical investigation of bubble growth and detachment by the lattice-Boltzmann method