S&P, Nasdaq open lower after worst week since March