Schlumberger Ltd. posted a loss in its latest quarter on lower revenue, but the company said energy prices and production were both poised to increase. Schlumberger and other companies in the oil-field-services sector have been hurt by weak demand from oil and natural gas producers for services such as drilling and completing oil-and-gas wells due to a two-year decline in energy prices. During 2016, though, energy prices rose and…