Long-Period Fiber Grating Analysis Using Generalized N×N Coupled-Mode Theory by Section-Wise Discretization