Dynamic and stress analysis of spatial flexible mechanical systems