Known to one section of its inhabitants as Derry, to another as Londonderry, Northern Ireland's second city has a complex linguistic history shaped by waves of settlement and political allegiance.