Wainwright homers in Cards' win over Brewers