Latvian language, historical sociolinguistics