Contribution to the theory of eutectoid and eutectic transformations