Wainwright uneven in Cardinals' win over Tigers