Loss-induced on'off switching in a channel add'drop filter