Ex-Gitmo detainee conviction overturned