Measuring Portfolio Diversification Based on Optimized Uncorrelated Factors