Some peculiarities of the law of inheritance. The formation of Imami and Isma‘ili law