Sampling theories of boundary value problems with several internal points of discontinuity