Selecting the Number of Communities for Weighted Degree-Corrected Stochastic Block Models