First-Principles Study of p-n-Doped Silicon Quantum Dots: Charge Transfer, Energy Dissipation, and Time-Resolved Emission