Ford posts first quarterly loss in 2 years