Noniterative beam propagation method for optical grating waveguides