Kennedy, D-backs beat Wainwright, Cardinals 6-2