Advanced Mask Process Modeling for 45-nm and 32-nm Nodes