Mechanism of peritectic reactions and transformations