An algebraic–geometric construction of ind-varieties of generalized flags