Simulation of semiconductor optoelectronic devices