Free vibrations of nonlocally elastic rods