Array waveguide grating model for nanoparticle sensor applications