An FPGA-Based Reconfigurable Accelerator for Low-Bit DNN Training