Direct determination of the Iwasawa decomposition for noncompact semisimple Lie algebras