Application of transfer entropy to causality detection and synchronization experiments in tokamaks