Closed-form solutions for Euler-Bernoulli arbitrary discontinuous beams