Stanford opens the season with a win over Kansas State