A refugee has been convicted of attempted suicide after being moved from an Australian-funded detention camp on the Pacific island of Nauru in a decision described as "sickening".