The Formation of a Core-Periphery Structure in Heterogeneous Financial Networks