Adaptive optical band-pass filter for multiwavelength optical networks