UN: Detainees tortured in Afghanistan