Martin McGuinness, a former Irish Republican Army commander who was deputy first minister of Northern Ireland, has died.