An iterative information-theoretic approach to the detection of structures in complex systems