Finite-amplitude gravity waves in the atmosphere: traveling wave solutions and stability