A quantitative genetic approach for predicting ecological change in biological communities