The history of the idea of Latvians as a civic nation, 1850-1940