General frame for arbitrary 3R subproblems based on the POE model