X-ray powder diffractometry in studies of solid carbons