Linear programming approach to design of spatial link mechanism with partially rigid joints