Fundamental Frequency of and Third Harmonic of Squarewave Grating