What is one way that both protists and fungi get energy?