Solution for free vibration of spatial curved beams