Catalysis by molecular sieves in the preparation of ketimines and enamines