Pattern DepenĀ­dent Modeling for CMP Optimization and Control