Structure and arrangement of perforated plates for uniform flow distribution in an electrostatic precipitator