Seasonal variations of ozone in the upper mesosphere and gravity waves