Design of life support systems for submarines