Optimizing the Timing and Composition of Therapeutic Phage Cocktails: A Control-Theoretic Approach