How the interbank market becomes systemically dangerous: an agent-based network model of financial distress propagation