Self-assembly of the gyroid cubic mesophase: Lattice-Boltzmann simulations