On the possibility of chemosynthetic ecosystems in subsurface habitats on Mars