American who says he crossed into Syria by foot is free after 7 months in detention