Solar wind interaction with planetary atmospheres