All-optical ternary signal processing using uniform nonlinear chalcogenide fiber Bragg gratings