A robotic fish caudal fin: effects of stiffness and motor program on locomotor performance