NMR-NQR study of the crossover from the spin-glass to the superconducting phase in La2-xSrxCuO4