X-ray diffraction study of the charge distribution in niobium monocarbide