A general method for distinguishing between endo and exo actions of carbohydrases