How do animals get the carbon and nitrogen they need to survive?