Text this: Structural equation modelling and system dynamic in the detection of power quality events