Brewers avoid sweep, beat Reds 8-4