The use of generalised functions in the discontinuous beam-bending differential equations