HingeInflex: a MATLAB-based method for precise selection of the hinge and the inflection points in folds