Evaluation of the low-lying energy levels of two- and three-electron configurations for highly charged ions