Quantum information teleported from light to matter