Octopus-inspired robotic arm