Nationalism is a tool increasingly used by leaders to bolster their authority, especially amid difficult economic and political conditions.