Preparation, separation, purification or stabilisation of unsubstituted lactams