Optically Controlled Distributed Quantum Computing Using Atomic Ensembles As Qubits