When nationalism developed as a concept what was it the aim to end?