Analyzing the effects of species gain and loss on ecosystem function using the extended Price equation partition