Metal surface in contact with electrolyte solution - influence of spatial variation of dielectric constant