its capital city was riga