On the regular solution of a quasi-variational inequality connected to a problem of stochastic impulse control