Compositional inhomogeneity and its effect on the hardness of nanostructured refractory high-entropy alloys