Using species functional traits to predict community dynamics