In 1919, which eastern european country was briefly ruled by a soviet republic before becoming a military dictatorship?