Experimental transition probabilities and Stark shifts in O III and O IV spectra