sun primary consumers bacteria predator scavengers decomposers autotrophs animals pyramid of energy prey trophic pyramids detritivores producers secondary consumers consumers trophic levels herbivores omnivores plants fungi bioaccumulation tertiary consumers carnivores heterotrophs energy