Wainwright helps Cards beat Cubs 4-2 in doubleheader opener