Gravar-mail: Optimization methods for hyper-redundant robots’ inverse kinematics in biomedical applications