Bound states in the continuum in all-dielectric metasurfaces