Stewart platform reverse solver & optimiser