An analysis of food-web structure and function in a shortgrass prairie, a mountain meadow, and a lodgepole pine forest