Hybrid method for computing the nearest singular polynomials