Padres rally from 5 down against Bumgarner, beat Giants 6-5