Interbank Contagion: An Agent-Based Model (ABM) Approach to Endogenously Formed Networks