Homogeneity and Sparsity Analysis for High-Dimensional Panel Data Models