Modeling tumors as complex ecosystems