Planetary and interstellar processes relevant to the origins of life