Density functional theory study of the FT-IR spectra of phthalimide and N-bromophthalimide.