Optimized algorithm of active injection circuit to calibrate DC circuit breaker