Kinetic studies of intermetallic compound formation by resistance measurements