Optimal impulsive control of compartment models, I: Qualitative aspects