Three-dimensional analysis of potential vorticity associated with tropopause folds and observed variations of ozone and carbon monoxide