Text this: Design and tolerance analysis of a router with an amplified resonator and Bragg gratings