Automation spending pays off for UPS