Magic-State Distillation in All Prime Dimensions Using Quantum Reed-Muller Codes