Inverse and forward dynamics of N-3RPS manipulator with lockable joints