Oilfield services giant Halliburton slumped to a loss in the second quarter as global activity stalled and impairments hit