Holograms as optical branching elements