A Method for Optical Proximity Correction of Thermal Processes: Orthogonal Functional Method