Quantum optical networks with trapped ions