Bound states of the continuum in photonic structures