Evolution of hydrothermal ecosystems on Earth (and Mars?)