METALLICITIES OF EMISSION-LINE GALAXIES FROM HST ACS PEARS AND HST WFC3 ERS GRISM SPECTROSCOPY AT 0.6 < z < 2.4