Index Composition: Mathematical Analysis for Effective Portfolio Construction