Bound states in the continuum via singular transfer matrices Bound states in the continuum via singular transfer matrices