A bio-inspired grasp optimization algorithm for an anthropomorphic robotic hand