An efficient synthesis of multisubstituted 4-nitrobuta-1,3-dien-1-amines and application in cyclisation reactions