Optoelectronic Device Simulations Based on Macroscopic Maxwell–Bloch Equations