Water slippage on graphitic and metallic surfaces: Impact of surface packing structure and electron density tail