Photonic architectures for ultrafast all-optical switching and retro-modulation