Spatial dispersion in metamaterials with negative dielectric permittivity and its effect on surface waves