Text this: Tailoring Spectral Response of Grating-Assisted Co-Directional Couplers with Weighting Techniques and Rational Transfer Functions: Theory and Experiment