Direct determination of oxygen abundances in line-emitting star-forming galaxies at intermediate redshift