Rapid characterization and modeling of pattern-dependent variation in chemical-mechanical polishing