Implementation of Adaptive Site Optimization in Model-Based OPC for Minimizing Ripples