FRAM for systemic accident analysis: a matrix representation of functional resonance