Towards a generalization of information theory for hierarchical partitions