On the automation of the force method in the optimal plastic design of frames