Text this: Quantifying resilience of socio-ecological systems through dynamic Bayesian networks