Discontinuity analysis for the treatment of lumped-parameter chemical engineering systems for singular inputs