Precision measurements of fine and hyperfine structure in lithium I and II