Fpga based design and development of novel algorithms and architectures for electrostatic precipitator controller