IBM to sell some of its software products to HCL for $1.8 billion