Preparation of cyclopropylamine derivatives as histone demethylase inhibitors