Scalarization of set-valued optimization problems and variational inequalities in topological vector spaces