Variable optical splitter based on wavelength-sensitive components and related intelligent passive optical network