Halliburton drops to $1.7 billion loss in second quarter