Intense lithium ion beam diagnostic using the inverse nuclear reaction D(7Li, n)8Be