The effective screening function in insulating solids