Atomic energy levels from configuration interaction calculations with relativistic corrections