High-spin electronic interaction of small lithium and sodium cluster formation in the excited states