An FPGA-based dynamically reconfigurable platform for emulation of permanent faults in ASICs