Modelling the budget of middle atmospheric water vapour isotopes