The automaker posted disappointing second-quarter results and announced reductions in production and staff.