All-optical switching and intensity discrimination by polarization instability in periodically twisted fiber filters.