Free vibration analysis of elastic rods using global collocation