Abundances and evolution of lithium in the galactic halo and disk