Wavelength-sensitive thin-film filter-based variable fiber-optic attenuator with an embedded monitoring port