Electromagnetically induced grating in semiconductor quantum dot and metal nanoparticle hybrid system by considering nonlocality effects