Side reactions in the preparation of 1,2,3,4-tetrahydro-β-carboline-3-carboxylic acid