Impact of the tropopause on upward propagation of mountain waves