Barney homers to lift Cubs over Padres 8-6