In situ density measurement for a thermal lithium beam employing diode lasers