Spectral Element Method Simulation of Linear and Nonlinear Electromagnetic Field in Semiconductor Nanostructures