A cost-based multi-layer network approach for the discovery of patient phenotypes