Determination of source terms in a degenerate parabolic equation