Five terrorism convicts freed on appeal