Measurement of amplification and absorption of a THz quantum-cascade metasurface free-space amplifier