Environmentally-controlled modules for sustainable farming on Earth and life-support in space