Explain how energy is transferred through a food web and food chain using the law of conservation of energy.