Synthesis of diphenylphosphoryl enamines, 2-pyridones and 2-pyrrolidones