Optimal trajectory optimization of 7R robot for space maintenance operation