A general method for the synthesis of tetramic acid derivatives