Propagating bound states in the continuum in dielectric gratings