Stocks open lower, wiping out more of the summer’s gains