Text this: Far-infrared metallicity diagnostics: application to local ultraluminous infrared galaxies