Isotope shift studies in ultraviolet spectra of neutral and singly ionized neodymium gadolinium, dysprosium and ytterbium