either with an activated form of ammonia, optionally in the presence of a condensing agent, or with an amine of formula R3???NH2, wherein R3 is as defined above, thus obtaining a compound of formula (I) as defined above wherein W is NR1, wherein R1 is as defined above, and R2 is an optionally substituted group selected form aryl, cycloalkyl and heterocyclyl group;