General Motors lays off about 1,000 workers, cutting costs to compete