Learning the inverse kinetics of an octopus-like manipulator in three-dimensional space