Effects of impacts on the atmospheric evolution: Comparison between Mars, Earth, and Venus