Basic considerations of four-wave mixing and dynamic gratings