Simulation of Two-Phase Flow in Reservoir Rocks Using a Lattice Boltzmann Method