Wainwright throws 5 sharp innings, Cards top Miami