Lattice Boltzmann simulation of the impact of a gravity current with an obstacle