Modelling the stratospheric residual circulation under historical and future climates