Ex-Gitmo detainee's conviction overturned