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