3-D Simulation of Current Spreading in Semiconductor Light-Emitting and Laser Diodes Using Nonlinear Boundary Method