UPS to cut 12,000 jobs, trim $1 billion in costs