Near-field dynamic study of the nanoacoustic effect on the extraordinary transmission in gold nanogratings