Viscosity solutions and deterministic impulse control problems