Detecting shift and pure contagion in East Asian equity markets : a unified