Text this: Real-Time ROADM Filtering Penalty Characterization and Generalized Precompensation for Flexible Grid Networks