The interconnected nature of financial systems: Direct and common exposures