Ethnopolitics and the Transition to Democracy: The Collapse of the USSR and Latvia