Resilience of complex systems: State of the art and directions for future research