Nissan to cut costs, capacity, lineup in sweeping overhaul