Simple method to measure OSNR in transmission systems with channel filtering