Initial-boundary value problems for conservation laws with source terms and the Degasperis-Procesi equation