Implementation of slow coherency based controlled islanding using DIgSILENT powerfactory and MATLAB