Large-scale modular quantum-computer architecture with atomic memory and photonic interconnects