Samsung Electronics flagged a gradual recovery for chips in the second half of the year after its semiconductor business reported a record loss on Thursday, driven by weak demand for tech devices. A global downturn in semiconductor purchases amid an economic slowdown and weak customer spending sent …