Design methodology for minimizing warpage