Comparison between the differential and integral methods used to solve the grating problem in the H∥ case