Stress Compensation by Deposition of a Nonuniform Corrective Coating