Application of perturbation theory to the limitation of the extent of the configuration interaction