What country was formerly a grand duchy of russia?