Computer simulation of grain boundary spatial distribution in a three-dimensional polycrystal with cubic structure