NaBH4 reduction of cyclic imides