Iran ex-president says country won't give up nuclear rights