Long-period fiber gratings as band-rejection filters