Police officers convicted of torturing man in detention