Soft curvature sensors for measuring the rotational angles of mechanical fingers