Synthesis of 5-methoxylated 3-pyrrolin-2-one via the rearrangement of chlorinated pyrrolidin-2-ones