Text this: Method for extracting the surface impedance of a generic reflective metasurface