An existence condition for the inverse dynamics solution of a slewing Euler–Bernoulli beam