Better algorithm to compute J4's

This does a better mapping for J4's than the linear combination of sensors used for the rest of the joints.

Tested with hand and glove. The behaviour is good.