Identity as ideology understanding ethnicity and nationalism