Study of the onset of superconductivity in underdoped La2−xSrxCuO4