Protection from cosmic radiation in long-term manned spaceflights