Isotope shifts in beryllium-, boron-, carbon-, and nitrogen-like ions from relativistic configuration interaction calculations