Time spectroscopy in the a1Σu+ states of Li2 and Na2. lifetimes and electronic dipole moment of the A-X transition