Optically controlled holographic beam splitter