The diffuse double layer in ionic liquids