Vortex rings moving in a stratified medium