Bidirectional grating wavelength shifter with a broad-range tunability by using a beam of uniform strength