A Fast OPC Algorithm for IC Layout Based on 1-D Cells after Optimization of Gap Distribution