Hybrid Accelerator to Overcome Imperfections of Mixed-signal DNN Accelerators using Algorithm-Hardware Co-Design