Quantum interface between light and atomic ensembles