Pretreatment of the gases prior to electrostatic precipitation by acoustic or electromagnetic energy, e.g. ultra-violet light