Surface impedance of a spatially dispersive medium