Text this: On direct and inverse problems related to longitudinal impact of non-uniform elastic rods