How the idea of the ecosystem was invented