Which type of ecological pyramid best traces the flow of matter through an ecosystem?