Juan E. Mendez, United Nations special rapporteur on torture and other inhuman punishment