Early-warning signals of topological collapse in interbank networks