Documenting individual identity: the development of state practices in the modern world