Discontinuous Sturm-Liouville Problems and Associated Sampling Theories