World must prevent terror ‘madmen’ from getting nukes: Obama