FPGA implementation of a fuel cell emulator