Calculated wavelengths and oscillator strengths for Be I, B II, C III, and N IV for n = 2−2, 2−3, 3−3, and other transitions