Before his death, the former president of Nauru explained how a deal with Australia to open a detention centre destroyed democracy in his country.